package com.pay.common;

/**
 * 图片路径
 * @author admin
 *
 */
public enum DiskNameEnum {

	ACTIVITY_IMG(1,"activityImg/"), //活动图片
	
	VIPCAR_IMG(2,"vipCarImg/"), //会员卡
	
	LEAGUECONS_IMG(3,"leagueconsImg/"),//团建图片
	
	WORKS_IMG(4,"worksImg/"),//作品图
	
	VENUE_IMG(5,"venueImg/"),//场馆
	
	SUBJECT_IMG(6,"subjectImg/"),//课程
	
	MEMBER_IMG(7,"memberImg/"), //会员图片
	
	RESERVATION_IMG(8,"reservationImg/"); //预约图片
	
	private final Integer value;

	private final String name;
	
	private DiskNameEnum(Integer value, String name) {
		this.value = value;
		this.name = name;
	}

	public static DiskNameEnum getState(Integer value) {
		for (DiskNameEnum item : DiskNameEnum.values()) {
			if (item.value == value) {
				return item;
			}
		}
		return null;
	}
	
	public static String getStateName(Integer value) {
		for (DiskNameEnum item : DiskNameEnum.values()) {
			if (item.value == value) {
				return item.getName();
			}
		}
		return null;
	}
	
	public Integer getValue() {
		return value;
	}

	public String getName() {
		return name;
	}
	
}
